<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>user</title>
</head>
<body>
<p>列表元素</p>
<ul>
    {% for u in user_list %}
        <li>{{ forloop.counter }}-{{ u }}</li>
    {% endfor %}
</ul>
<p>列表元素第一个:
<span>{{ user_list.0 }}</span>
</p>


<p>名字长度大于3:
{% for user in user_list %}
    {% if user|length > 3 %}
        <span>{{ user }}</span>
    {% endif %}
{% endfor %}
</p>
</body>
</html>